package com.ikas.ai.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: yanweiming
 * @Date:2022/9/7 16:56
 * @Description:
 */
@Data
public class BaseLogicEntity implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    protected Date createTime;
    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    protected Date updateTime;

    /**
     * 创建人id
     */
    @TableField(value = "creator", fill = FieldFill.INSERT)
    protected Long creator;

    /**
     * 修改人id
     */
    @TableField(value = "updater", fill = FieldFill.INSERT_UPDATE)
    protected Long updater;

    /**
     * 是否删除
     */
    @TableField(value = "is_deleted", fill = FieldFill.UPDATE)
    @TableLogic(delval = "1")
    private Integer isDeleted;
}